package blackitheima1;

import java.io.FileOutputStream;
import java.io.IOException;

//字节流异常处理
public class MyOutput2 {
    public static void main(String[] args) {
        FileOutputStream ops=null;
        try {
            //System.out.println(2/0);
            //创建字节流
           // FileOutputStream ops=new FileOutputStream("day11\\bbb");
            ops=new FileOutputStream("day11\\bbb");
            ops.write(97);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if(ops!=null){
                try {
                    ops.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
